package com.xuyiwei.xblog.business.article.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.xuyiwei.xblog.business.article.model.Comment;
import com.xuyiwei.xblog.business.article.result.article.input.CommentConditionVO;
import com.xuyiwei.xblog.business.article.result.article.out.CommentDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 文章评论 Mapper 接口
 * </p>
 *
 * @author xuyiwei
 * @since 2018-10-29
 */
public interface CommentMapper extends BaseMapper<Comment> {

    List<CommentDto> findPageByCondition(@Param("page") Page<CommentDto> page, @Param("vo") CommentConditionVO vo,
                                         @Param("orderByField") String orderByField, @Param("isAsc") boolean isAsc);
}
